<% if current_user && current_user.isadmin %>
<h1>New Restaurant</h1>

<%= render 'form' %>

<%= link_to 'Back', :back %> | 
<%= link_to 'Home', root_url %>
<% else %>
<p>Error: You are not authorized to add new restaurants.</p>
<p>If you would like to add a restaurant, please contace an administrator. %>.</p>
<p>Or you can return to the <%= link_to "home page", root_url %>.</p>
<% end %>
